package com.example.springboot.exception;

import lombok.Data;

/**
 * 功能:
 * 作者: sdj
 * 日期: 2024/12/13 22:49
 */
@Data
public class ServiceException extends RuntimeException{
    private String code;
    public ServiceException(String msg){
        super(msg);
        this.code="500";
    }

    public ServiceException(String code,String msg){
        super(msg);
        this.code=code;
    }
}
